package com.iwayin.core.dao.notification;

import java.util.List;

import com.iwayin.core.dataobject.NotificationDO;

/**
 * @author LIUWENLONG
 * 
 */
public interface NotificationDAO {

	/**
	 * @author LiuWenLong
	 * @description TODO
	 * @version 2012-8-15下午9:09:36
	 * @param Notification
	 * @return
	 */
	public Long addNotification(NotificationDO notification);
	public Long addFansNotification(Long userId,Long objectId);
	public Long addVoteNotification(Long userId,Long objectId);
	public Long addCommentNotification(Long userId,Long objectId);

	/**
	 * @author LiuWenLong
	 * @description TODO
	 * @version 2012-8-15下午9:10:01
	 * @param Notification
	 * @return
	 */
	public List<NotificationDO> findNotificationByUserId(NotificationDO notification);

	/**
	 * @author LiuWenLong
	 * @description TODO
	 * @version 2012-8-15下午9:11:20
	 * @param Notification
	 */
	public void deleteNotification(NotificationDO notification);

}
